// vite.config.ts
import { defineConfig } from "file:///C:/Users/jingyenetwork/Desktop/%E9%A1%B9%E7%9B%AE%E5%90%88%E9%9B%86/%E6%9A%96%E5%BF%83%E5%AE%9D%E4%BF%9D%E9%99%A9PC/node_modules/vite/dist/node/index.js";
import vue from "file:///C:/Users/jingyenetwork/Desktop/%E9%A1%B9%E7%9B%AE%E5%90%88%E9%9B%86/%E6%9A%96%E5%BF%83%E5%AE%9D%E4%BF%9D%E9%99%A9PC/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import { resolve } from "path";
import WindiCSS from "file:///C:/Users/jingyenetwork/Desktop/%E9%A1%B9%E7%9B%AE%E5%90%88%E9%9B%86/%E6%9A%96%E5%BF%83%E5%AE%9D%E4%BF%9D%E9%99%A9PC/node_modules/vite-plugin-windicss/dist/index.mjs";
var __vite_injected_original_dirname = "C:\\Users\\jingyenetwork\\Desktop\\\u9879\u76EE\u5408\u96C6\\\u6696\u5FC3\u5B9D\u4FDD\u9669PC";
var vite_config_default = defineConfig({
  plugins: [vue(), WindiCSS()],
  resolve: {
    // 设置文件./src路径为 @
    alias: [
      {
        find: "@",
        replacement: resolve(__vite_injected_original_dirname, "./src")
      }
    ]
  },
  // css: {
  //   postcss: {
  //     plugins: [tailwindcss, autoprefixer],
  //   },
  // },
  base: "/index/",
  build: {
    rollupOptions: {
      output: {
        chunkFileNames: "js/[name]-[hash].js",
        entryFileNames: "js/[name]-[hash].js",
        assetFileNames: "[ext]/[name]-[hash].[ext]"
      }
    }
  },
  server: {
    port: 8023,
    // 端口
    host: "0.0.0.0",
    proxy: {
      "/seller": {
        //请求路径关键字
        target: "https://nxb.yeahshopee.com/",
        //对应自己的接口
        changeOrigin: true,
        //是否允许跨域,在本地会创建一个虚拟服务端，然后发送请求的数据，
        // 并同时接收请求的数据，这样服务端和服务端进行数据的交互就不会有跨域问题
        ws: true,
        rewrite: (path) => path.replace(/^\/seller/, "/seller")
        // pathRewrite: {
        //   "/phone": "", //这里理解成用‘/api’代替target里面的地址，后面组件中我们掉接口时直接用api代替
        //   // 比如我要调用'http://localhost:8024/management/user/add'，直接写‘/api/user/add’即可
        // },
      }
    }
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJDOlxcXFxVc2Vyc1xcXFxqaW5neWVuZXR3b3JrXFxcXERlc2t0b3BcXFxcXHU5ODc5XHU3NkVFXHU1NDA4XHU5NkM2XFxcXFx1NjY5Nlx1NUZDM1x1NUI5RFx1NEZERFx1OTY2OVBDXCI7Y29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2ZpbGVuYW1lID0gXCJDOlxcXFxVc2Vyc1xcXFxqaW5neWVuZXR3b3JrXFxcXERlc2t0b3BcXFxcXHU5ODc5XHU3NkVFXHU1NDA4XHU5NkM2XFxcXFx1NjY5Nlx1NUZDM1x1NUI5RFx1NEZERFx1OTY2OVBDXFxcXHZpdGUuY29uZmlnLnRzXCI7Y29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2ltcG9ydF9tZXRhX3VybCA9IFwiZmlsZTovLy9DOi9Vc2Vycy9qaW5neWVuZXR3b3JrL0Rlc2t0b3AvJUU5JUExJUI5JUU3JTlCJUFFJUU1JTkwJTg4JUU5JTlCJTg2LyVFNiU5QSU5NiVFNSVCRiU4MyVFNSVBRSU5RCVFNCVCRiU5RCVFOSU5OSVBOVBDL3ZpdGUuY29uZmlnLnRzXCI7aW1wb3J0IHsgZGVmaW5lQ29uZmlnIH0gZnJvbSBcInZpdGVcIjtcbmltcG9ydCB2dWUgZnJvbSBcIkB2aXRlanMvcGx1Z2luLXZ1ZVwiO1xuaW1wb3J0IHsgcmVzb2x2ZSB9IGZyb20gXCJwYXRoXCI7XG5pbXBvcnQgd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